package com.medical.literature.visualization.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 关键词统计实体类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("keyword_statistics")
public class KeywordStatistics {
    
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 关键词
     */
    private String keyword;

    /**
     * 关键词ID
     */
    private Long keywordId;

    /**
     * 出现次数
     */
    private Integer count;

    /**
     * 权重
     */
    private BigDecimal weight;

    /**
     * 分类
     */
    private String category;

    /**
     * 统计时间
     */
    private LocalDateTime statTime;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}